Skip to content

Conversation

slobodanadamovic
Copy link
Contributor

Backport

This will backport the following commits from main to 8.x:

Questions ?

Please refer to the Backport tool documentation

…essions (elastic#125252)

The CCS is currently not supported for failure store backing indices.
This PR adjusts the selector parsing (introduced in elastic#118614) to prevent
using `::failures` and `::data` selectors with cross-cluster expressions.

For example, `GET my_remote_cluster:logs-*::failures/_search` request
will fail early, during expression parsing.
To test manually, run `./gradlew run-ccs` and execute the example request.

(cherry picked from commit 1d6c6a5)

# Conflicts:
#	server/src/main/java/org/elasticsearch/cluster/metadata/IndexNameExpressionResolver.java
#	x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/parser/StatementParserTests.java
@slobodanadamovic
Copy link
Contributor Author

slobodanadamovic commented Mar 28, 2025

Waiting on #125557 to be backported to avoid introducing conflicts.

# Conflicts:
#	server/src/main/java/org/elasticsearch/cluster/metadata/IndexNameExpressionResolver.java
@slobodanadamovic slobodanadamovic added the auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label Mar 31, 2025
@elasticsearchmachine elasticsearchmachine merged commit fd7a4b4 into elastic:8.x Mar 31, 2025
15 checks passed
@slobodanadamovic slobodanadamovic deleted the backport/8.x/pr-125252 branch March 31, 2025 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport v8.19.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants